package com.example.databasepj.mapper;

import com.example.databasepj.dto.MerchantGetMenu;
import com.example.databasepj.entity.MerchantEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MerchantMapper {
    MerchantEntity selectMerchantById(int id);
    MerchantEntity selectMerchantByName(String name);

    List<MerchantEntity> getAll();

    void deleteByMerchant_id(int id);

    int insertMerchant(MerchantEntity merchantEntity);

    List<MerchantGetMenu> getMenuAndAnalyzeDishData(int merchantId);
    void updateMerchant(MerchantEntity merchantEntity);


}
